package com.pzh.vue.service.imp;

import com.pzh.vue.pojo.Course;
import com.pzh.vue.mapper.CourseMapper;
import com.pzh.vue.service.ICourseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xzh
 * @since 2022-04-04
 */
@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements ICourseService {
    @Resource
    private CourseMapper courseMapper;


    @Override
    public void updateSelectNum(Integer selectNum, String courseName) {
        courseMapper.updateSn(selectNum,courseName);
    }
}
